package br.edu.bdd.machado.entity;
// Generated 24/08/2011 02:31:51 by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Editora generated by hbm2java
 */
@Entity
@Table(name="editora"
    ,catalog="livraria_machado_de_assis"
)
public class Editora  implements java.io.Serializable {


     private Integer cdEditora;
     private String nmEditora;
     private String dsEndereco;
     private String dsTelefone;
    

    public Editora() {
    }

	
    public Editora(String nmEditora, String dsEndereco, String dsTelefone) {
        this.nmEditora = nmEditora;
        this.dsEndereco = dsEndereco;
        this.dsTelefone = dsTelefone;
    }
    public Editora(String nmEditora, String dsEndereco, String dsTelefone, Set livros) {
       this.nmEditora = nmEditora;
       this.dsEndereco = dsEndereco;
       this.dsTelefone = dsTelefone;
     
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="cd_editora", unique=true, nullable=false)
    public Integer getCdEditora() {
        return this.cdEditora;
    }
    
    public void setCdEditora(Integer cdEditora) {
        this.cdEditora = cdEditora;
    }
    
    @Column(name="nm_editora", nullable=false, length=50)
    public String getNmEditora() {
        return this.nmEditora;
    }
    
    public void setNmEditora(String nmEditora) {
        this.nmEditora = nmEditora;
    }
    
    @Column(name="ds_endereco", nullable=false, length=150)
    public String getDsEndereco() {
        return this.dsEndereco;
    }
    
    public void setDsEndereco(String dsEndereco) {
        this.dsEndereco = dsEndereco;
    }
    
    @Column(name="ds_telefone", nullable=false, length=15)
    public String getDsTelefone() {
        return this.dsTelefone;
    }
    
    public void setDsTelefone(String dsTelefone) {
        this.dsTelefone = dsTelefone;
    }





}


